<?php

return [
    'app_id' => 'wxab1bf1ccbd6c17a0',
    'secret' => '30d5b48a511e09d6d10b327d439ae9ea',
    'token'   => 'Token123',          // Token
    'aes_key' => 'uZUYzlP7olKJBfCFYGA08GD3r86jQ4o5J6SZIuoitE4',                    // EncodingAESKey，兼容与安全模式下请一定要填写！！！

    // 指定 API 调用返回结果的类型：array(default)/collection/object/raw/自定义类名
    'response_type' => 'array',
    'log' => [
        'default' => 'dev', // 默认使用的 channel，生产环境可以改为下面的 prod
        'channels' => [
            // 测试环境
            'dev' => [
                'driver' => 'single',
                'path' => 'D:/wwwroot/app.hebhuazhen.com/runtime/wechat/easywechat.log',
                'level' => 'debug',
            ],
            // 生产环境
            'prod' => [
                'driver' => 'daily',
                'path' => 'D:/wwwroot/app.hebhuazhen.com/runtime/wechat/easywechat.log',
                'level' => 'info',
            ],
        ],
    ],


    /**
     * OAuth 配置
     *
     * scopes：公众平台（snsapi_userinfo / snsapi_base），开放平台：snsapi_login
     * callback：OAuth授权完成后的回调页地址
     */
    'oauth' => [
        'scopes'   => ['snsapi_userinfo'],
        'callback' => $_SERVER['SCRIPT_NAME'].'/index/Wechat/oauth_callback?'.urlencode(http_build_query(request()->get()))
    ],
];
